A browser-frontend on another origin logs in at the token-URL which
GET /api/auth-config reported, without any proxy in
between; therefore /fake-jwt/** has to answer CORS requests
like the /api endpoints do.
HTTP GET "/api/auth-config"
=> status: 200 OK
{
"method" : "fake-jwt",
"authority" : null,
"tokenUrl" : "/fake-jwt/token"
}
HTTP OPTIONS "/fake-jwt/token" \
-H 'Access-Control-Request-Method: POST' \
-H 'Origin: https://frontend.example'
=> status: 200 OK
HTTP POST "/fake-jwt/token" \
-H 'Origin: https://frontend.example' \
<<EOF
username=frontend-developer&password=anything
EOF
=> status: 200 OK
generated on 2026-08-10 03:08:49 for branch HEAD